package example07;

public class SonLikeDoTest {
    public static void main(String[] args) {


       // 继承爸爸的爱好
        IDadLikeDo iDadLikeDo = new SonLikeDo();
        iDadLikeDo.ride();
        iDadLikeDo.backetball();

        // 继承妈妈的爱好
        IMonLikeDo iMonLikeDo = new SonLikeDo();
        iMonLikeDo.dance();
        iMonLikeDo.sing();
    }
}
